package com.caifu.service;

import javax.servlet.http.HttpServletRequest;

import com.baomidou.mybatisplus.extension.service.IService;
import com.caifu.bean.Result;
import com.caifu.pojo.SysShortMessage;

import net.sf.json.JSONObject;

/**
 * <p>
 * 短信表 服务类
 * </p>
 *
 * @author szt
 * @since 2020-08-14
 */
public interface SysShortMessageService extends IService<SysShortMessage> {

	 /**
	    * 
	    * 功能描述：发送短信接口
	    * 
	    * @Param signName 签名 phoneNumber 手机号 templateCode 短信模板 templateParam参数
	    * @Return      
	    * @Exception   
	    * @Author  GZ
	    * @Date   2020/8/3 14:21
	    */
	    JSONObject sendShortMessage(String signName,String phoneNumber, String templateCode, JSONObject templateParam) throws Exception;

	    /**
	     *
	     * 功能描述：验证短信验证码
	     *
	     * @Param  phoneNumber 用户手机号  verifyCode 用户验证码
	     * @Return
	     * @Exception
	     * @Author  GZ
	     * @Date   2020/4/29 10:33
	     */
	    JSONObject checkVerifyCode(String phoneNumber, String verifyCode, HttpServletRequest request) throws Exception;
}
